package com.wskj.insuranceweb.util;

import java.util.List;

public class PageInfo {
    /**
     * 对应后台接收总条数这些的实体类
     */
    private Integer pageNumber=1;//第几页
    private Integer pageSize=5;//每页几条
    private Long total=0L;//总条数
    private List rows;
    private Long offset=0L;//分页查询的起始位置
    //如果没有页面传值，那么起始位置等于   （pageNumber-1）*pageSize,pageSize
    public Integer getPageNumber() {
        return pageNumber;
    }

    public void setPageNumber(Integer pageNumber) {
        this.pageNumber = pageNumber;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public List getRows() {
        return rows;
    }

    public void setRows(List rows) {
        this.rows = rows;
    }

    public Long getOffset() {
        return offset;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }
}
